﻿@{
    ViewBag.Title = "Register";
}

<h2>Register</h2>
@if (Request["retry"] != null)
{
    if (Request["retry"].Equals("1"))
    {
        <span>Username cannot empty</span>
    }
    else if (Request["retry"].Equals("2"))
    {
        <span>Password verification not match</span>
    }
}
@using (Html.BeginForm("Index", "Register", FormMethod.Post)) {
<div style="width: 400px">
	<div style="background: #ddeeff; height: 40px">
		<div style="float: left; width: 110px; vertical-align: middle">
			Phone Number [*]
		</div>
		<div style="vertical-align: middle">
			<input type="text" name="username" 
            @if (ViewBag.Username != null) {
                Html.Raw("value=\"" + @ViewBag.Username + "\"");
            }
            />
		</div>
	</div>
	<div style="background: #aabbff; height: 40px; vertical-align: middle">
		<div style="float: left; width: 110px">
			Password [*]
		</div>
		<div style="vertical-align: middle">
			<input type="password" name="password"/>
		</div>
	</div>
    <div style="background: #ddeeff; height: 40px; vertical-align: middle">
		<div style="float: left; width: 110px">
			Password [verify*]
		</div>
		<div style="vertical-align: middle">
			<input type="password" name="password2"/>
		</div>
	</div>
    <div style="background: #aabbff; height: 40px; vertical-align: middle">
		<div style="float: left; width: 110px">
			Complete Name
		</div>
		<div style="vertical-align: middle">
			<input type="text" name="completeName"/>
		</div>
	</div>
    <div style="background: #ddeeff; height: 120px; vertical-align: middle">
		<div style="float: left; width: 110px">
			Address
		</div>
		<div style="vertical-align: middle">
			<textarea name="address" cols="30" rows="5"></textarea>
		</div>
	</div>
    <div style="text-align: center">
        <input type="submit" value="Register" />
    </div>
</div>
}